<?php

Class Registry{

//vars array
//private
private $arrVars = array();

//set undefined vars

public function __set($index, $value){
	$this->arrVars[$index] = $values;
}

//get variable at index

public function __get($index){
	return $this->arrVars[$index];
}

}
?>